import { computed, ref } from 'vue';
import katex from 'katex';

export function formatVueLatex(html: string) {
  let text = html;
  console.log("html: ", text);
  //text = text.replace("vuelatex","VueLatex");
  //text = text.replace("\\", "\\\\");
  console.log("text: ", text);
  text = katex.renderToString(text);
  return text;
}